import request from '../../utils/request'
const api_name = "order"


export function createOrder(orderinfo) {
    return request({
        url: `/${api_name}/create`,
        method: 'POST',
        data: orderinfo
    })
}


export function getOrders() {
    return request({
        url: `/${api_name}/getorders`,
        method: 'GET'
    })
}

export function getOrderById(id) {
    return request({
        url: `/${api_name}/orderdetail/${id}`,
        method: 'GET'
    })
}
